package com.nyist.diseasepreventionserver.converter;

import com.nyist.diseasepreventionserver.dto.UserDTO;
import com.nyist.diseasepreventionserver.form.UserForm;

public class UserFormToUser {
    public static UserDTO converter(UserForm userForm){
        /*User user = new User();
        user.setUserSid(userForm.getUserSid());
        user.setUserPassword(userForm.getUserPassword());
        user.setUserName(userForm.getUserName());
        user.setName(userForm.getName());
        user.setPhone(userForm.getPhone());*/

        UserDTO userDTO = new UserDTO();
        userDTO.setUserSid(userForm.getUserSid());
        userDTO.setUserPassword(userForm.getUserPassword());
        userDTO.setUserName(userForm.getUserName());
        userDTO.setName(userForm.getName());
        userDTO.setPhone(userForm.getPhone());
        return userDTO;
    }
}
